import {Actor, Action} from 'iflux2';

export default class GoodsSetActor extends Actor {
  defaultState() {
    return {
      commentReplyAudit: 0,
      defaultComment: {
        defaultContent: '',//默认好评内容
        delayDay: 0,//延迟多少天，默认好评
        status: 0//默认好评
      },
      threeMonthsSales: 0,//近三月商品销量
      goodsDisplay: 0//商品列表展示方式，0:sku，1:spu
    }
  }
  @Action('init-setting')
  init(state, data) {
    return state.merge(data);
  }
  @Action('set-active')
  onSet(state, data){
    return state.merge(data);
  }
}